package com.example.ssh.pojo;


import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @Description
 * @Author konglz
 * @Data 2023/7/3 22:05
 */
public class User implements Serializable {
    private Long id;

    private String name;

    private Long age;

    private Long sex;

    private String address;

    public User() {
    }

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Long getAge() {
        return age;
    }

    public Long getSex() {
        return sex;
    }

    public String getAddress() {
        return address;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Long age) {
        this.age = age;
    }

    public void setSex(Long sex) {
        this.sex = sex;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public User(Long id, String name, Long age, Long sex, String address) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.address = address;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", sex=" + sex +
                ", address='" + address + '\'' +
                '}';
    }
}
